package com.dxf.bigdata.D05_spark_again.工程化代码.application

import com.dxf.bigdata.D05_spark_again.工程化代码.common.TApplicationEnv
import com.dxf.bigdata.D05_spark_again.工程化代码.controller.WordCountController
import org.apache.spark.{SparkConf, SparkContext}

/**
 *
 *
 * 调用顺序
 * Application -> controller -> service -> dao
 *
 * 返回
 * dao -> service -> controller -> 输出到某个地方
 *
 *
 *
 *
 *
 */
object WordCountApplication extends App with TApplicationEnv{


  start() {
    val controller = new WordCountController
    controller.dispatch()
  }


//  start(()=>{
//    val controller = new WordCountController
//    controller.dispatch()
//  })
}
